/*
 * =====================================================================================
 *
 *       Filename:  Enum.cpp
 *
 *    Description:  iterate through an enum
 *    http://stackoverflow.com/questions/261963/c-iterate-through-an-enum
 *
 *        Version:  1.0
 *        Created:  12/15/2011 09:50:47 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *        Company:  
 *
 * =====================================================================================
 */
#include <iostream>
#include "Converters.hpp"

using namespace btl::utility;

int main()
{
    enum MT { C1_CONTINUITY, NONE, DISPARIT_GAUSSIAN };
    MT _eMethod;
    _eMethod = C1_CONTINUITY;
    
    PRINT( _eMethod );

    for( int i=0; i < 4; i++ )
    {
        _eMethod = (MT) (i%(DISPARIT_GAUSSIAN +1));
        PRINT( _eMethod );
    }

    return 0;
}
